package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 新文件类型枚举类
 *
 * @author HCG
 * @version 1.0
 * @date 2022/1/15
 */
@AllArgsConstructor
@Getter
public enum NewFileTypeEnum {

    FLBZ(20, "法规标准", ""),
    RKLCJDD(21, "认可流程及导读", ""),
    ZLSC(25, "质量手册", ""),
    CXWJ(26, "程序文件", ""),
    SOP(27, "SOP", ""),
    JLBD(28, "记录表单", ""),
    SYSAQSC(29, "实验室安全手册", ""),
    ZNGS(30, "指南共识", ""),
    SBSMS(32, "设备说明书", ""),
    SJSMS(33, "试剂说明书", ""),
    JSBG(35, "技术报告", ""),
    RKGZ(36, "认可规则", ""),
    RKSM(37, "认可说明", ""),
    RKZN(38, "认可指南", ""),
    RKZZ(39, "认可准则", ""),
    RKXX(40, "认可信息", ""),
    RKCJWT(41, "认可常见问题", ""),
    DZSJ(42, "电子书籍", ""),
    SPZL(43, "审评资料", ""),
    SQZL(44, "申请资料", ""),
    SYSCJWT1(46, "实验室常见问题一", ""),
    SYSCJWT2(45, "实验室常见问题二", ""),
    BHFSLJ(47, "不符合实例集", ""),
    JBRKZZ(48, "基本认可准则", ""),
    RKYYZZ(49, "认可应用准则", ""),
    SBSMS2(50, "设备详情说明书", ""),
    ZCWJ(51, "政策文件", ""),
    DISCARD(99, "废止文件", ""),

    SOP1(100, "SOP-诊断", ""),
    SOP2(101, "SOP-常规", ""),
    SOP3(102, "SOP-分子", ""),
    SOP4(103, "SOP-细胞", ""),
    SOP5(104, "SOP-免疫", ""),
    SOP6(105, "SOP-科室", ""),

    JLBD1(106, "记录表单-诊断", ""),
    JLBD2(107, "记录表单-常规", ""),
    JLBD3(108, "记录表单-分子", ""),
    JLBD4(109, "记录表单-细胞", ""),
    JLBD5(110, "记录表单-免疫", ""),
    JLBD6(111, "记录表单-科室", ""),

    ZNGS1(112, "指南共识-诊断", "ZD-EF-ZN-%s"),
    ZNGS2(113, "指南共识-常规", "JS-EF-ZN-%s"),
    ZNGS3(114, "指南共识-分子", "FZ-EF-ZN-%s"),
    ZNGS4(115, "指南共识-细胞", "XB-EF-ZN-%s"),
    ZNGS5(116, "指南共识-免疫", "MY-EF-ZN-%s"),

    DZSJ1(117, "电子书籍-诊断", "ZD-EF-BOOK-%s"),
    DZSJ2(118, "电子书籍-常规", "JS-EF-BOOK-%s"),
    DZSJ3(119, "电子书籍-分子", "FZ-EF-BOOK-%s"),
    DZSJ4(120, "电子书籍-细胞", "XB-EF-BOOK-%s"),
    DZSJ5(121, "电子书籍-免疫", "MY-EF-BOOK-%s"),

    SMS1(122, "设备说明书-诊断", "ZD-EF-SB-%s"),
    SMS2(123, "设备说明书-常规", "JS-EF-SB-%s"),
    SMS3(124, "设备说明书-分子", "FZ-EF-SB-%s"),
    SMS4(125, "设备说明书-细胞", "XB-EF-SB-%s"),
    SMS5(126, "设备说明书-免疫", "MY-EF-SB-%s"),


    SJ_SMS1(127, "试剂说明书-诊断", "ZD-EF-SJ-%s"),
    SJ_SMS2(128, "试剂说明书-常规", "JS-EF-SJ-%s"),
    SJ_SMS3(129, "试剂说明书-分子", "FZ-EF-SJ-%s"),
    SJ_SMS4(130, "试剂说明书-细胞", "XB-EF-SJ-%s"),
    SJ_SMS5(131, "试剂说明书-免疫", "MY-EF-SJ-%s"),

    PB_BB(140, "排班-本部", ""),
    PB_JN(141, "排班-江北", ""),
    PB_NB(142, "排班-南部", ""),
    ;

    private Integer code;
    private String desc;
    private String number;

    public static NewFileTypeEnum getByCode(Integer code) {
        NewFileTypeEnum[] values = NewFileTypeEnum.values();
        for (NewFileTypeEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
